package com.diandi.activity.service;

import com.diandi.activity.bean.Activity;
import com.diandi.ddsb.bean.Result;
import com.diandi.ddsb.bean.Results;
import com.diandi.ddsb.vo.InvestActStasticsInfoVo;
import com.diandi.ddsb.vo.NewActivityInfoVo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

import static com.diandi.Constant.APPLICATION_NAME;

/**
 * Created by 袁恩光 on 2018/3/13.
 */
@FeignClient(APPLICATION_NAME)
@RequestMapping("activityWebService")
public interface ActivityWebService {

    @RequestMapping(value = "queryActivitys",method = RequestMethod.POST)
    public List<Activity> queryActivitys(@RequestParam Map<String, Object> paramMap);

    @RequestMapping("queryActivitysCount")
    public Integer queryActivitysCount(@RequestParam Map<String, Object> paramMap);

    @RequestMapping("addNewInvestActivity")
    public Results addNewInvestActivity(@RequestBody NewActivityInfoVo activity);

    @RequestMapping("getDetailMVww")
    public Map<String , Object> getDetailMV(@RequestParam("id") Long id, @RequestParam("editFlag") String editFlag);

    @RequestMapping("updateActivity")
    public Result updateActivity(@RequestBody Activity activity);

    @RequestMapping("queryActivityInfoForStatistics")
    public Map<String, Object> queryActivityInfoForStatistics(@RequestParam("activityid")long activityid);

    @RequestMapping("queryInvestStatisticsInfoByCondition")
    public List<InvestActStasticsInfoVo> queryInvestStatisticsInfoByCondition(@RequestParam Map<String, Object> condition);

    @RequestMapping("queryInvestStatisticsInfoCountByCondition")
    public Integer queryInvestStatisticsInfoCountByCondition(@RequestParam Map<String, Object> condition);


}
